﻿<UserControl x:Class="AesonXamlControls.Inputs.AesonDataForm"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Style>
        <Style TargetType="{x:Type UserControl}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type UserControl}" >
                        <Grid>
                            <StackPanel VerticalAlignment="Center"  >
                                <Border BorderBrush="LightSlateGray" BorderThickness="1"   >
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="10*" />
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <ContentControl  Content="{TemplateBinding Content}"  />
                                        <StackPanel  Grid.Row="1"  Orientation="Horizontal" >
                                            <Button Width="60" Margin="5" Style="{DynamicResource SquareButtonStyle}" >Load</Button>
                                            <Button Width="60" Margin="5" Style="{DynamicResource SquareButtonStyle}" >Save</Button>
                                            <Button Width="60" Margin="5" Style="{DynamicResource SquareButtonStyle}" >CLose</Button>
                                        </StackPanel>
                                    </Grid>
                                </Border>
                            </StackPanel>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Style>
</UserControl>
